import time
import unittest
from scripts.test01_login import TestLogin
from scripts.test02_employee import TestEmployee
from tools.HTMLTestRunner import HTMLTestRunner
import app

suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestLogin))
suite.addTest(unittest.makeSuite(TestEmployee))

# report = app.BASE_DIR + "/report/report-{}.html".format(time.strftime("%Y%m%d-%H%M%S"))
report = "./report/report.html"
with open(report, "wb") as f:
    runner = HTMLTestRunner(f, title="IHRM登陆报告")
    runner.run(suite)
